package edu.bedelias.utils;

import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.ProcessEngines;
import org.activiti.engine.RuntimeService;

public class ActivitiUtil {
    public static ProcessEngine getProcessEngine() {

//        ProcessEngine pe = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration()
//                .buildProcessEngine();
        ProcessEngine pe = ProcessEngines.getDefaultProcessEngine();

        return pe;
    }

    public static RuntimeService getRuntimeService() {
        return getProcessEngine().getRuntimeService();
    }
}
